<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewMusicTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewMusicLabel_musicId}"/>
                    <h:outputText value="#{musicController.selected.musicId}" title="#{bundle.ViewMusicTitle_musicId}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_title}"/>
                    <h:outputText value="#{musicController.selected.title}" title="#{bundle.ViewMusicTitle_title}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_description}"/>
                    <h:outputText value="#{musicController.selected.description}" title="#{bundle.ViewMusicTitle_description}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_authorIds}"/>
                    <h:outputText value="#{musicController.selected.authorIds}" title="#{bundle.ViewMusicTitle_authorIds}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_singerIds}"/>
                    <h:outputText value="#{musicController.selected.singerIds}" title="#{bundle.ViewMusicTitle_singerIds}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_createTime}"/>
                    <h:outputText value="#{musicController.selected.createTime}" title="#{bundle.ViewMusicTitle_createTime}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_userCreateId}"/>
                    <h:outputText value="#{musicController.selected.userCreateId}" title="#{bundle.ViewMusicTitle_userCreateId}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_enable}"/>
                    <h:outputText value="#{musicController.selected.enable}" title="#{bundle.ViewMusicTitle_enable}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_typeId}"/>
                    <h:outputText value="#{musicController.selected.typeId}" title="#{bundle.ViewMusicTitle_typeId}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_avatarImageLink}"/>
                    <h:outputText value="#{musicController.selected.avatarImageLink}" title="#{bundle.ViewMusicTitle_avatarImageLink}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_sourceFile}"/>
                    <h:outputText value="#{musicController.selected.sourceFile}" title="#{bundle.ViewMusicTitle_sourceFile}"/>
                    <h:outputText value="#{bundle.ViewMusicLabel_fileTypeId}"/>
                    <h:outputText value="#{musicController.selected.fileTypeId}" title="#{bundle.ViewMusicTitle_fileTypeId}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{musicController.destroyAndView}" value="#{bundle.ViewMusicDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewMusicEditLink}"/>
                <br />
                <h:commandLink action="#{musicController.prepareCreate}" value="#{bundle.ViewMusicCreateLink}" />
                <br />
                <h:commandLink action="#{musicController.prepareList}" value="#{bundle.ViewMusicShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewMusicIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
